package com.ozy.kxreader.mvp.model

import com.ozy.kxreader.base.Api
import com.ozy.kxreader.di.scope.ActivityScope
import com.ozy.kxreader.mvp.contract.CategoryContract
import com.ozy.kxreader.mvp.model.entity.CategoryList
import io.reactivex.Observable
import javax.inject.Inject

/**
 * Created by 欧源 on 2018/1/30.
 */
@ActivityScope
class CategoryModel
@Inject constructor(private val api: Api) : CategoryContract.Model {
    override fun getCategoryList(): Observable<CategoryList> {
        return api.getCategoryList();
    }


}